//
//  GameKitManager.h
//  MessangerSkeleton
//
//  Created by User-23 on 4/26/14.
//  Copyright (c) 2014 IOTrainingCamp. All rights reserved.
//

#import "CCNode.h"
#import "cocos2d.h"
#import "Configuration.h"
#import "NetworkProtocol.h"

#import <GameKit/GameKit.h>

@interface GameKitManager : CCNode <GKPeerPickerControllerDelegate, GKSessionDelegate, NetworkProtocol>
{
    //    NSTimer *gameLoopTimer;
    NSString *gkPeerID;
    GameState gameState;


    GKSession *gkSession;

}

//@property (strong, nonatomic) NSTimer *gameLoopTimer;
@property (strong, nonatomic) NSString *gkPeerID;
@property (strong, nonatomic) GKSession *gkSession;



+ (id)sharedInstance;

- (void)startLookingForOponent;
//- (NSString *)timeStartLookingForOpponent;

- (void)sendData:(NSData *)data
        withMode:(DataMode)dataMode;

- (void)endSession;

@end
